

#ifndef __LEYU_BROWSERHELPER_H__
#define __LEYU_BROWSERHELPER_H__


#include <string>

#include "BrowserContext.h"


class BrowserHelper
{
public:
	BrowserHelper(HWND hWnd);
	virtual ~BrowserHelper();
	
	virtual void LoadUrl(const char* urlString) = 0;
	virtual void LoadUrl(const wchar_t* urlString) = 0;
	virtual void ResizeViews() = 0;
	virtual void ResizeViews(RECT* clientRect) = 0;
	virtual void Show() = 0;
	virtual void Hide() = 0;
	virtual BrowserContext* CreateContext() = 0;
	virtual void ReleaseContext(BrowserContext* browserContext) = 0;
	virtual BOOL CheckHelper() = 0;
	HWND  m_targetWindow;
	HWND  m_viewWindow;
	DWORD m_currentThreadId;
	PVOID m_windowScriptObject;
	PVOID m_windowScriptContext;
protected:
	PVOID m_browser;
};
#endif //__LEYU_BROWSERHELPER_H__